package com.dyh.quickdemo.demos.componentProp;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/*
@Author=Joey Wheeler
@Date=2020/10/13 21:44
*/
@Component
public class DemoComponentImpl implements DemoComponent {
    int fa = 364;

    /*变成代理类后 不能直接拿到 fa 必须通过方法访问 如get*/
    @Transactional
    public void fun(){
        r.run();
        System.out.println(fa+"|"+si+"|"+i);
    }
}
